#ifndef _GAME_H_
#define _GAME_H_

struct _game {
  int pre_curf_level;
  struct _player pre_player;
  struct _task *task;
};

struct _game Game;

void game_trans_state(state (*fp)(struct _task *task), struct _game *game);
void game_player_trans_state(state (*fp)(struct _task *task), struct _game *game, struct _player *player);
struct _game *game_add();
state game_opening(struct _task *task);
state game_player_next_floor(struct _task *task);
state game_player_get_amulet_of_yendor(struct _task *task);
state game_player_killed(struct _task *task);
#endif
